package com.shanzmoo.admin.domain.dto;

import cn.hutool.core.bean.BeanUtil;
import com.shanzmoo.db.store.entity.StoreReceivePutawayEntity;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 仓库收货上架信息 保存对象
 *
 * @author Gzhao 2021-03-11
 */
@Data
@ApiModel("仓库收货上架信息-保存对象")
public class StoreReceivePutawaySaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "状态：0-待上架,1-已上架,9-已取消")
    private Integer status;

    @ApiModelProperty(value = "商品sku")
    private String sku;

    @ApiModelProperty(value = "入库类型")
    private Integer type;

    @ApiModelProperty(value = "入库仓库编码")
    private String storeCode;

    @ApiModelProperty(value = "sku数量")
    private Integer skuNum;

    @ApiModelProperty(value = "收货单id")
    private Integer receiveBillId;

    @ApiModelProperty(value = "上架批人")
    private Integer putawayUser;

    @ApiModelProperty(value = "上架时间")
    private LocalDateTime putawayTime;

    @ApiModelProperty(value = "取消理由")
    private String cancelReason;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除，0-未删除 1-已删除")
    private Boolean deleted;

    public StoreReceivePutawayEntity convertEntity() {
        StoreReceivePutawayEntity target = new StoreReceivePutawayEntity();
        BeanUtil.copyProperties(this, target, true);
        return target;
    }
}
